/*
 * @Descripttion:
 * @Author: voanit
 * @Date: 2022-05-12 10:23:17
 * @LastEditors: voanit
 * @LastEditTime: 2022-05-14 09:18:31
 */
import React from 'react'
import { addAction } from '../../store/actions/book'
import { useSelector, useDispatch } from 'react-redux'
import { action1 } from '../../store/actions/todos'
const Footer = () => {
  const book = useSelector((state) => state.book)
  const todos = useSelector((state) => state.todos)
  const dispatch = useDispatch()
  console.log(todos, 9977)
  return (
    <div>
      御剑乘风来,除魔天地间!==Footer=={book}==
      <button
        onClick={() => {
          // dispatch({
          //   type: 'book',
          // })
          // dispatch(addAction('水浒传'))
          dispatch(action1)
          console.log(todos, 33)
        }}
      >
        footer
      </button>
    </div>
  )
}
export default Footer
